home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 64 | 63 63 31 32 2e 75 63 73 |Path: sd|cc12.ucs|
|00000010| 64 2e 65 64 75 21 67 6f | 6c 67 69 21 6a 73 74 72 |d.edu!go|lgi!jstr|
|00000020| 6f 75 74 0a 46 72 6f 6d | 3a 20 4a 6f 73 65 70 68 |out.From|: Joseph|
|00000030| 20 53 74 72 6f 75 74 20 | 3c 6a 73 74 72 6f 75 74 | Strout |<jstrout|
|00000040| 40 75 63 73 64 2e 65 64 | 75 3e 0a 4e 65 77 73 67 |@ucsd.ed|u>.Newsg|
|00000050| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 6c 61 6e 67 |roups: c|omp.lang|
|00000060| 2e 63 2b 2b 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |.c++.Sub|ject: Re|
|00000070| 3a 20 63 69 6e 2e 67 65 | 74 28 73 74 72 69 6e 67 |: cin.ge|t(string|
|00000080| 29 20 70 72 6f 62 6c 65 | 6d 0a 44 61 74 65 3a 20 |) proble|m.Date: |
|00000090| 4d 6f 6e 2c 20 31 32 20 | 46 65 62 20 31 39 39 36 |Mon, 12 |Feb 1996|
|000000a0| 20 30 38 3a 31 35 3a 31 | 39 20 2d 30 38 30 30 0a | 08:15:1|9 -0800.|
|000000b0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 55 6e |Organiza|tion: Un|
|000000c0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 43 61 6c 69 |iversity| of Cali|
|000000d0| 66 6f 72 6e 69 61 2c 20 | 53 61 6e 20 44 69 65 67 |fornia, |San Dieg|
|000000e0| 6f 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 50 |o.Messag|e-ID: <P|
|000000f0| 69 6e 65 2e 53 47 49 2e | 33 2e 39 31 2e 39 36 30 |ine.SGI.|3.91.960|
|00000100| 32 31 32 30 38 31 32 31 | 32 2e 33 39 35 34 46 2d |21208121|2.3954F-|
|00000110| 31 30 30 30 30 30 40 67 | 6f 6c 67 69 3e 0a 52 65 |100000@g|olgi>.Re|
|00000120| 66 65 72 65 6e 63 65 73 | 3a 20 3c 34 66 6b 30 32 |ferences|: <4fk02|
|00000130| 61 24 6e 68 40 72 65 61 | 64 65 72 32 2e 69 78 2e |a$nh@rea|der2.ix.|
|00000140| 6e 65 74 63 6f 6d 2e 63 | 6f 6d 3e 0a 4e 4e 54 50 |netcom.c|om>.NNTP|
|00000150| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 67 |-Posting|-Host: g|
|00000160| 6f 6c 67 69 2e 75 63 73 | 64 2e 65 64 75 0a 4d 69 |olgi.ucs|d.edu.Mi|
|00000170| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000180| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 54 45 |Content-|Type: TE|
|00000190| 58 54 2f 50 4c 41 49 4e | 3b 20 63 68 61 72 73 65 |XT/PLAIN|; charse|
|000001a0| 74 3d 55 53 2d 41 53 43 | 49 49 0a 58 2d 53 65 6e |t=US-ASC|II.X-Sen|
|000001b0| 64 65 72 3a 20 6a 73 74 | 72 6f 75 74 40 67 6f 6c |der: jst|rout@gol|
|000001c0| 67 69 0a 49 6e 2d 52 65 | 70 6c 79 2d 54 6f 3a 20 |gi.In-Re|ply-To: |
|000001d0| 3c 34 66 6b 30 32 61 24 | 6e 68 40 72 65 61 64 65 |<4fk02a$|nh@reade|
|000001e0| 72 32 2e 69 78 2e 6e 65 | 74 63 6f 6d 2e 63 6f 6d |r2.ix.ne|tcom.com|
|000001f0| 3e 20 0a 0a 4f 6e 20 53 | 75 6e 2c 20 31 31 20 46 |> ..On S|un, 11 F|
|00000200| 65 62 20 31 39 39 36 2c | 20 4b 75 72 74 20 57 2e |eb 1996,| Kurt W.|
|00000210| 20 47 72 65 69 6e 65 72 | 20 77 72 6f 74 65 3a 0a | Greiner| wrote:.|
|00000220| 0a 3e 20 20 20 20 20 20 | 20 20 20 63 68 61 72 20 |.> | char |
|00000230| 73 74 72 69 6e 67 5b 38 | 30 5d 3b 0a 3e 20 20 20 |string[8|0];.> |
|00000240| 20 20 20 20 20 20 63 69 | 6e 2e 67 65 74 28 73 74 | ci|n.get(st|
|00000250| 72 69 6e 67 2c 73 69 7a | 65 6f 66 28 73 74 72 69 |ring,siz|eof(stri|
|00000260| 6e 67 29 29 3b 0a 3e 20 | 20 20 20 20 20 20 20 20 |ng));.> | |
|00000270| 63 69 6e 2e 67 65 74 28 | 73 74 72 69 6e 67 2c 73 |cin.get(|string,s|
|00000280| 69 7a 65 6f 66 28 73 74 | 72 69 6e 67 29 29 3b 0a |izeof(st|ring));.|
|00000290| 0a 3e 20 6f 6b 2c 20 73 | 61 79 20 69 20 77 61 6e |.> ok, s|ay i wan|
|000002a0| 74 20 74 6f 20 72 65 61 | 64 20 69 6e 20 61 20 6e |t to rea|d in a n|
|000002b0| 61 6d 65 20 6f 6e 20 74 | 68 65 20 66 69 72 73 74 |ame on t|he first|
|000002c0| 20 63 69 6e 2c 20 69 20 | 74 79 70 65 20 69 6e 20 | cin, i |type in |
|000002d0| 22 6a 6f 68 6e 20 73 6d | 69 74 68 22 20 61 6e 64 |"john sm|ith" and|
|000002e0| 20 0a 3e 20 74 68 65 20 | 70 72 6f 6d 70 74 2c 20 | .> the |prompt, |
|000002f0| 6a 6f 68 6e 20 67 65 74 | 73 20 74 68 72 6f 77 6e |john get|s thrown|
|00000300| 20 69 6e 20 74 6f 20 74 | 68 65 20 66 69 72 73 74 | in to t|he first|
|00000310| 20 61 6e 64 20 73 6d 69 | 74 68 20 74 68 65 20 73 | and smi|th the s|
|00000320| 65 63 6f 6e 64 2c 20 69 | 20 64 6f 20 6e 6f 74 0a |econd, i| do not.|
|00000330| 0a 59 65 73 2c 20 77 65 | 20 61 72 65 20 67 69 66 |.Yes, we| are gif|
|00000340| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 6c 65 67 |ted with| the leg|
|00000350| 61 63 79 20 6f 66 20 74 | 68 65 20 6f 72 69 67 69 |acy of t|he origi|
|00000360| 6e 61 6c 20 63 72 65 61 | 74 6f 72 73 20 6f 66 20 |nal crea|tors of |
|00000370| 43 2c 20 77 68 6f 20 0a | 61 73 73 75 6d 65 64 20 |C, who .|assumed |
|00000380| 74 68 61 74 20 77 68 65 | 6e 65 76 65 72 20 77 65 |that whe|never we|
|00000390| 20 72 65 61 64 20 63 68 | 61 72 61 63 74 65 72 20 | read ch|aracter |
|000003a0| 61 72 72 61 79 73 2c 20 | 77 65 27 64 20 6f 6e 6c |arrays, |we'd onl|
|000003b0| 79 20 77 61 6e 74 20 74 | 6f 20 72 65 61 64 20 75 |y want t|o read u|
|000003c0| 70 20 0a 74 6f 20 74 68 | 65 20 69 6e 69 74 69 61 |p .to th|e initia|
|000003d0| 6c 20 77 68 69 74 65 73 | 70 61 63 65 20 28 73 70 |l whites|pace (sp|
|000003e0| 61 63 65 2c 20 74 61 62 | 2c 20 6f 72 20 6e 65 77 |ace, tab|, or new|
|000003f0| 6c 69 6e 65 29 2e 0a 0a | 46 69 72 73 74 2c 20 49 |line)...|First, I|
|00000400| 27 64 20 72 65 63 6f 6d | 6d 65 6e 64 20 79 6f 75 |'d recom|mend you|
|00000410| 20 64 6f 6e 27 74 20 75 | 73 65 20 63 68 61 72 61 | don't u|se chara|
|00000420| 63 74 65 72 20 61 72 72 | 61 79 73 20 69 6e 20 43 |cter arr|ays in C|
|00000430| 2b 2b 3b 20 75 73 65 20 | 61 20 72 65 61 6c 20 0a |++; use |a real .|
|00000440| 53 74 72 69 6e 67 20 63 | 6c 61 73 73 20 69 6e 73 |String c|lass ins|
|00000450| 74 65 61 64 2e 20 20 43 | 68 61 72 61 63 74 65 72 |tead. C|haracter|
|00000460| 20 61 72 72 61 79 73 20 | 61 72 65 20 63 6c 75 6d | arrays |are clum|
|00000470| 73 79 20 61 6e 64 20 64 | 61 6e 67 65 72 6f 75 73 |sy and d|angerous|
|00000480| 20 62 79 20 0a 63 6f 6d | 70 61 72 69 73 6f 6e 2e | by .com|parison.|
|00000490| 0a 0a 57 69 74 68 20 6d | 79 20 53 74 72 69 6e 67 |..With m|y String|
|000004a0| 20 63 6c 61 73 73 20 28 | 73 65 65 20 68 74 74 70 | class (|see http|
|000004b0| 3a 2f 2f 77 77 77 2d 6e | 63 6d 69 72 2e 75 63 73 |://www-n|cmir.ucs|
|000004c0| 64 2e 65 64 75 2f 7e 6a | 73 74 72 6f 75 74 2f 63 |d.edu/~j|strout/c|
|000004d0| 6c 61 73 73 6c 69 62 2f | 29 2c 20 0a 79 6f 75 20 |lasslib/|), .you |
|000004e0| 63 61 6e 20 74 68 65 6e | 20 73 69 6d 70 6c 79 20 |can then| simply |
|000004f0| 73 61 79 0a 0a 09 6d 79 | 53 74 72 69 6e 67 2e 52 |say...my|String.R|
|00000500| 65 61 64 4c 69 6e 65 28 | 63 69 6e 29 3b 0a 0a 74 |eadLine(|cin);..t|
|00000510| 6f 20 72 65 61 64 20 61 | 20 6c 69 6e 65 2e 20 20 |o read a| line. |
|00000520| 28 22 63 69 6e 20 3e 3e | 20 6d 79 53 74 72 69 6e |("cin >>| myStrin|
|00000530| 67 22 20 73 74 6f 70 73 | 20 61 74 20 74 68 65 20 |g" stops| at the |
|00000540| 66 69 72 73 74 20 77 68 | 69 74 65 73 70 61 63 65 |first wh|itespace|
|00000550| 2c 20 74 6f 20 0a 6d 61 | 69 6e 74 61 69 6e 20 63 |, to .ma|intain c|
|00000560| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 77 69 74 |ompatibi|lity wit|
|00000570| 68 20 73 74 61 6e 64 61 | 72 64 20 62 65 68 61 76 |h standa|rd behav|
|00000580| 69 6f 72 2e 29 09 0a 0a | 42 65 73 74 20 6f 66 20 |ior.)...|Best of |
|00000590| 6c 75 63 6b 2c 0a 2d 2d | 20 4a 6f 65 20 53 74 72 |luck,.--| Joe Str|
|000005a0| 6f 75 74 0a 0a 2c 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |out..,--|--------|
|000005b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2e 0a 7c 20 20 20 20 4a |--------|..| J|
|000005f0| 6f 73 65 70 68 20 4a 2e | 20 53 74 72 6f 75 74 20 |oseph J.| Strout |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 44 65 70 61 72 74 | | Depart|
|00000610| 6d 65 6e 74 20 6f 66 20 | 4e 65 75 72 6f 73 63 69 |ment of |Neurosci|
|00000620| 65 6e 63 65 2c 20 55 43 | 53 44 20 20 20 7c 0a 7c |ence, UC|SD |.||
|00000630| 20 20 20 20 6a 73 74 72 | 6f 75 74 40 75 63 73 64 | jstr|out@ucsd|
|00000640| 2e 65 64 75 20 20 20 20 | 20 20 20 20 20 20 20 68 |.edu | h|
|00000650| 74 74 70 3a 2f 2f 77 77 | 77 2d 61 63 73 2e 75 63 |ttp://ww|w-acs.uc|
|00000660| 73 64 2e 65 64 75 2f 7e | 6a 73 74 72 6f 75 74 2f |sd.edu/~|jstrout/|
|00000670| 20 20 7c 0a 60 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | |.`---|--------|
|00000680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000690| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 27 | 0a 0a |-------'|.. |
+--------+-------------------------+-------------------------+--------+--------+